* s~\t+$~~
[lhc/web/wiklou.git] / includes / SpecialUserrights.php
index 0a9d9ed..d71b8c4 100644 (file)
@@ -33,7 +33,7 @@ class UserrightsForm extends HTMLForm {
                $this->mPosted = $request->wasPosted();
                $this->mRequest =& $request;
                $this->mName = 'userrights';
-               
+
                $titleObj = Title::makeTitle( NS_SPECIAL, 'Userrights' );
                $this->action = $titleObj->escapeLocalURL();
        }
@@ -84,12 +84,12 @@ class UserrightsForm extends HTMLForm {
                if($u->getID() == 0) {
                        $wgOut->addWikiText( wfMsg( 'nosuchusershort', htmlspecialchars( $username ) ) );
                        return;
-               }               
+               }
 
                $oldGroups = $u->getGroups();
                $newGroups = $oldGroups;
                $logcomment = ' ';
-               // remove then add groups               
+               // remove then add groups
                if(isset($removegroup)) {
                        $newGroups = array_diff($newGroups, $removegroup);
                        foreach( $removegroup as $group ) {
@@ -103,7 +103,7 @@ class UserrightsForm extends HTMLForm {
                        }
                }
                $newGroups = array_unique( $newGroups );
-               
+
                wfDebug( 'oldGroups: ' . print_r( $oldGroups, true ) );
                wfDebug( 'newGroups: ' . print_r( $newGroups, true ) );
 
@@ -122,7 +122,7 @@ class UserrightsForm extends HTMLForm {
         */
        function switchForm() {
                global $wgOut;
-               
+
                // user selection
                $wgOut->addHTML( "<form name=\"uluser\" action=\"$this->action\" method=\"post\">\n" );
                $wgOut->addHTML( $this->fieldset( 'lookup-user',
@@ -141,13 +141,13 @@ class UserrightsForm extends HTMLForm {
         */
        function editUserGroupsForm($username) {
                global $wgOut, $wgUser;
-               
+
                $user = User::newFromName($username);
                if( is_null( $user ) || $user->getID() == 0 ) {
                        $wgOut->addWikiText( wfMsg( 'nosuchusershort', wfEscapeWikiText( $username ) ) );
                        return;
                }
-               
+
                $groups = $user->getGroups();
 
                $wgOut->addHTML( "<form name=\"editGroup\" action=\"$this->action\" method=\"post\">\n".